//
//  LKServiceViewController.m
//  YLHelper
//
//  Created by she1323 on 2018/4/16.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKServiceViewController.h"
#import "LKElearnViewController.h"
#import "LKMyCommitApplyViewController.h"
#import "LKNewVisitRecordViewController.h"
#import "LKWaitHandleOrderViewController.h"
#import "LKWaitHandleCustomerViewController.h"
#import "LKIssueViewController.h"
@interface LKServiceViewController ()

@property (weak, nonatomic) IBOutlet UIView *ElearningView;
@property (weak, nonatomic) IBOutlet UIView *orderCheckView;
@property (weak, nonatomic) IBOutlet UIView *visitRecodView;
@property (weak, nonatomic) IBOutlet UIView *orderHandleView;
@property (weak, nonatomic) IBOutlet UIView *customerHandleView;
@property (weak, nonatomic) IBOutlet UIView *issueView;

@end

@implementation LKServiceViewController

- (void)viewDidLoad {
//    cellHeaderBgColor
    [super viewDidLoad];
    [self setElearningView];
    [self setOrderCheckView];
    [self setVisitRecordView];
    [self setOrderHandleView];
    [self setCustomerHandleView];
//    [self setIssueView];
    // Do any additional setup after loading the view from its nib.
}
-(void)setElearningView{
    WS(weakSelf)
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    [self.ElearningView addGestureRecognizer:tap];
    [tap.rac_gestureSignal subscribeNext:^(__kindof UIGestureRecognizer * _Nullable x) {
        LKElearnViewController *vc = [[LKElearnViewController alloc] init];
        [weakSelf.navigationController pushViewController:vc animated:YES];
    }];
}
-(void)setOrderCheckView{
    WS(weakSelf)
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    [self.orderCheckView addGestureRecognizer:tap];
    [tap.rac_gestureSignal subscribeNext:^(__kindof UIGestureRecognizer * _Nullable x) {
        LKMyCommitApplyViewController *vc = [[LKMyCommitApplyViewController alloc] init];
        [weakSelf.navigationController pushViewController:vc animated:YES];
    }];
}
-(void)setVisitRecordView{
    WS(weakSelf)
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    [self.visitRecodView addGestureRecognizer:tap];
    [tap.rac_gestureSignal subscribeNext:^(__kindof UIGestureRecognizer * _Nullable x) {
        LKNewVisitRecordViewController *vc = [[LKNewVisitRecordViewController alloc] init];
        [weakSelf.navigationController pushViewController:vc animated:YES];
    }];
}
-(void)setOrderHandleView{
    WS(weakSelf)
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    [self.orderHandleView addGestureRecognizer:tap];
    [tap.rac_gestureSignal subscribeNext:^(__kindof UIGestureRecognizer * _Nullable x) {
        LKWaitHandleOrderViewController *vc = [[LKWaitHandleOrderViewController alloc] init];
        [weakSelf.navigationController pushViewController:vc animated:YES];
    }];
}
-(void)setCustomerHandleView{
    WS(weakSelf)
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    [self.customerHandleView addGestureRecognizer:tap];
    [tap.rac_gestureSignal subscribeNext:^(__kindof UIGestureRecognizer * _Nullable x) {
        LKWaitHandleCustomerViewController *vc = [[LKWaitHandleCustomerViewController alloc] init];
        [weakSelf.navigationController pushViewController:vc animated:YES];
    }];
}
-(void)setIssueView{
    WS(weakSelf)
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] init];
    [self.issueView addGestureRecognizer:tap];
    [tap.rac_gestureSignal subscribeNext:^(__kindof UIGestureRecognizer * _Nullable x) {
        LKIssueViewController *vc = [[LKIssueViewController alloc] init];
        [weakSelf.navigationController pushViewController:vc animated:YES];
    }];
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    //设置导航条文字颜色 白色
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:blueDefault}];
    self.tabBarController.tabBar.hidden = NO;
}
-(void)viewWillDisappear:(BOOL)animated{
    [super viewWillDisappear:animated];
    //设置导航条文字颜色 白色
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:COLOR_HEX(0x000000)}];
}

-(void)setNavgationBackBtn{
    self.navigationItem.title = @"工具";
    self.navigationItem.leftBarButtonItem = nil;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
